﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:local="clr-namespace:TestFYP" xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" x:Class="TestFYP.Window1"
    Title="Window1" Height="700" Width="900" AllowsTransparency="True" WindowStyle="None" Visibility="Visible" Background="{x:Null}">
	<Window.Resources>
		<Style x:Key="btnClose" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<Path Stretch="Fill" Stroke="#FF8D8D8D" StrokeThickness="3" Data="M0.5,0.5 L16,16 M16,0.5 L0.5,16">
								<Path.Effect>
									<DropShadowEffect Direction="301" ShadowDepth="3"/>
								</Path.Effect>
							</Path>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsFocused" Value="True"/>
							<Trigger Property="IsDefaulted" Value="True"/>
							<Trigger Property="IsMouseOver" Value="True"/>
							<Trigger Property="IsPressed" Value="True"/>
							<Trigger Property="IsEnabled" Value="False"/>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="btnMin" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<Rectangle Fill="#00000000" Stroke="#008D8D8D" StrokeThickness="3" RadiusX="10" RadiusY="9"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsFocused" Value="True"/>
							<Trigger Property="IsDefaulted" Value="True"/>
							<Trigger Property="IsMouseOver" Value="True"/>
							<Trigger Property="IsPressed" Value="True"/>
							<Trigger Property="IsEnabled" Value="False"/>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>

	<Grid Background="#03000000">
		<Rectangle Stroke="Black" RadiusX="10" RadiusY="9" AllowDrop="True" Margin="0.5,0,-0.5,0" d:IsLocked="True">
			<Rectangle.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="White" Offset="0"/>
					<GradientStop Color="#FF75B3AC" Offset="1"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		<Path Stretch="Fill" Stroke="Black" Margin="0,35,-0.5,0" VerticalAlignment="Top" Height="1" Data="M0,40 L599.5,40" d:IsLocked="True">
			<Path.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="White" Offset="0"/>
					<GradientStop Color="#FF009A89" Offset="1"/>
				</LinearGradientBrush>
			</Path.Fill>
		</Path>
		<Rectangle Stroke="#00000000" VerticalAlignment="Top" Height="36" MouseLeftButtonDown="Rectangle_MouseLeftButtonDown" d:IsLocked="True">
			<Rectangle.Fill>
				<SolidColorBrush/>
			</Rectangle.Fill>
		</Rectangle>
		<Button x:Name="btnExit" HorizontalAlignment="Right" Margin="0,9,8,0" Style="{DynamicResource btnClose}" VerticalAlignment="Top" Width="20.502" Height="15.169" Content="Button" Click="btnExit_Click" d:IsLocked="True"/>
		<Path Stretch="Fill" Stroke="Black" StrokeThickness="3" HorizontalAlignment="Right" Margin="0,23,182,0" VerticalAlignment="Top" Width="3" Height="3" Data="M416,24" d:IsLocked="True"/>
		<Path Stretch="Fill" Stroke="#FF8D8D8D" StrokeThickness="3" HorizontalAlignment="Right" Margin="0,21.169,36.502,0" VerticalAlignment="Top" Width="23.498" Height="3" Data="M528,24 L551.5,24" d:IsLocked="True">
			<Path.Effect>
				<DropShadowEffect Direction="301" ShadowDepth="3"/>
			</Path.Effect>
		</Path>
		<Button x:Name="btnMinimize" HorizontalAlignment="Right" Margin="0,5,34.502,0" Style="{DynamicResource btnMin}" VerticalAlignment="Top" Width="23.498" Height="26" Content="Button" Click="btnMinimize_Click" d:IsLocked="True"/>
		<TextBox x:Name="txtFile" Margin="128,116,316,0" VerticalAlignment="Top" Height="28" TextWrapping="Wrap" TextChanged="txtFile_TextChanged" d:IsLocked="True"/>
		<Label HorizontalAlignment="Left" Margin="48,112,0,0" VerticalAlignment="Top" Width="64" Height="32" Content="File Path" FontSize="14.667" d:IsLocked="True"/>
		<Button x:Name="btnFile" HorizontalAlignment="Right" Margin="0,120,212,0" VerticalAlignment="Top" Width="80" Height="24" Content="Browse" Click="btnFile_Click" Cursor="Hand" d:IsLocked="True"/>
		<Button x:Name="btnOpen" HorizontalAlignment="Right" Margin="0,120,108,0" VerticalAlignment="Top" Width="77" Height="24" Content="Open" Click="btnOpen_Click" IsEnabled="False" Cursor="Hand" d:IsLocked="True"/>
        <Button x:Name="btnClose" HorizontalAlignment="Right" Margin="0,120,8,0" VerticalAlignment="Top" Width="80" Height="24" Content="Close" Click="btnClose_Click" Cursor="Hand" d:IsLocked="True"/>
		<chartingToolkit:LineSeries x:Name="lsChapter" Margin="130,200,182,60" d:LayoutOverrides="Width, Height"/>
    </Grid>
</Window>
